package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.feign.fallback.MemberFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @create: 2024/9/11
 * @author: gyhe10
 * @description: 远程调用 member 服务的 feign 接口
 **/

@FeignClient(value = "gulimall-member", fallback = MemberFeignServiceFallback.class)
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/{memberId}/addresses")
    R getAddresses(@PathVariable("memberId") Long memberId);
}
